package spec.lijunyao.unit3.outclazz.ball;

public class Ball {
    String name;
    String daxiao;
    String caizhi;
    String zhongliang;
    String renqun;
    final static String tianchong = "空气";
    static String shape = "圆";

    Ball(){

    }

    public Ball(String name, String daxiao, String caizhi, String zhongliang, String renqun) {
        this.name = name;
        this.daxiao = daxiao;
        this.caizhi = caizhi;
        this.zhongliang = zhongliang;
        this.renqun = renqun;
    }

    String play(){
        return "每天打会球，健康一辈子。";
    }

    String selfIntroduction(){
        return "我的名字是"+name+",我的直径是"+daxiao+",我的材料是"+caizhi+",我的重量大概是"+zhongliang+",我适合"+renqun;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDaxiao() {
        return daxiao;
    }

    public void setDaxiao(String daxiao) {
        this.daxiao = daxiao;
    }

    public String getCaizhi() {
        return caizhi;
    }

    public void setCaizhi(String caizhi) {
        this.caizhi = caizhi;
    }

    public String getZhongliang() {
        return zhongliang;
    }

    public void setZhongliang(String zhongliang) {
        this.zhongliang = zhongliang;
    }

    public String getRenqun() {
        return renqun;
    }

    public void setRenqun(String renqun) {
        this.renqun = renqun;
    }
}